<?php
require_once('config.php');
	//连库
	if(!($con = mysql_connect(host, username, password))){
		echo mysql_error();
	}
	//选库
	if(!mysql_select_db('article')){
		echo mysql_error();
	}
	//字符集
	if(!mysql_query('set names utf8')){
		echo mysql_error();
	}

	
?>